package com.example.user.es;

import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.xcontent.XContentType;
import org.elasticsearch.rest.RestStatus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: mtl
 * @Date: 2022/1/21 11:19
 * @Description: ES 操作工具类
 */
@Slf4j
@Service
public class ElasticSearchUtils {


    /**
     * 新增文档
     *
     * @param
     * @return
     */
    public String addIndex() {
        return null;
    }

}
